﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace Projekt4Now
{
    public class Player
    {
        Vector2 location;
        Texture2D texture;
        bool isAlive;
        String playerState;
        float speed;

        public Player()
        {
            Vector2 location = new Vector2(0, 0);
            bool isAlive = true;
            String playerState = "Standing";
            float speed = 0.0f;
        }

        public Texture2D getTexture()
        {
            return this.texture;
        }
        public void setTexture(Texture2D a)
        {
            this.texture = a;
        }
        public Vector2 getLocation()
        {
            return this.location;
        }
        public void setLocation(Vector2 newLocation)
        {
            this.location = newLocation;
        }
        public void movePlayer(Vector2 moveAmount)
        {
            this.location.X += moveAmount.X;
            this.location.Y += moveAmount.Y;
        }
        public void acceleratePlayer(float accelAmount)
        {
            this.speed += accelAmount;
        }
        public float getSpeed()
        {
            return this.speed;
        }
        public void setSpeed(float newSpeed)
        {
            this.speed = newSpeed;
        }
    }
}
